package de.hfu.mdsd.mm.guimodel.android.generator;

import com.google.inject.Guice;
import com.google.inject.Injector;

import de.hfu.mdsd.mm.guimodel.GuimodelRuntimeModule;
import de.hfu.mdsd.mm.guimodel.GuimodelStandaloneSetup;

public class AndroidInjector extends GuimodelStandaloneSetup {

	public Injector createInjector() {
		return Guice.createInjector(new AndroidRuntimeModule());
	}
	
	public class AndroidRuntimeModule extends GuimodelRuntimeModule {
		@Override
		public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
			return AndroidGuimodelGenerator.class;
		}
	}
}
